package com.castle.fortress.admin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.castle.fortress.admin.schedule.model.entity.StudySchedule;
import com.castle.fortress.admin.service.StudyScheduleService;
import com.castle.fortress.admin.schedule.mapper.StudyScheduleMapper;
import org.springframework.stereotype.Service;

import java.sql.Wrapper;
import java.util.List;

/**
* @author fkrbl
* @description 针对表【study_schedule】的数据库操作Service实现
* @createDate 2025-09-20 11:39:22
*/
@Service
public class StudyScheduleServiceImpl extends ServiceImpl<StudyScheduleMapper, StudySchedule>
    implements StudyScheduleService{

    @Override
    public List<StudySchedule> listMySchedule(Long userId) {
        QueryWrapper<StudySchedule> wrapper = new QueryWrapper<>();
        wrapper.eq("user_id",userId);
        // wrapper.eq("status",0);
        return baseMapper.selectList(wrapper);
    }
}




